package com.org.service.impl;

import com.org.entity.RegistrationRequest;
import com.org.mapper.UserMapper;
import com.org.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Rainy-Heights
 * @version 1.0
 * @Date 2023/3/3 17:06
 */
@Service
public class RegisterServiceImpl implements RegisterService {
    @Autowired
    UserMapper mapper;

    @Override
    public String register(RegistrationRequest request) {
        mapper.insertInfo(request.getUsername(),request.getGender());
        return " ";
    }
}
